<!DOCTYPE html>
<html>
<head>
	<title>到货记录</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../../css/bootstrap.min.css">
	<link rel="stylesheet" href="../../css/font-awesome.min.css">
	<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
	<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="../../css/main.css">
	<script src="../../libs/jquery.min.js"></script>
	<script src="../../plugins/layer/layer.js"></script>
	<script src="../../libs/bootstrap.min.js"></script>
	<script src="../../libs/vue.min.js"></script>
	<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
	<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
	<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
	<script src="../../js/common.js"></script>
</head>
<style type="text/css">

	.col-sm-10.pror {
		margin-left: -20px;
	}

	.col-sm-2.control-label.prol {
		width: 110px;
		height: 20px;
		text-align: right;
		margin-left: -20px;
		padding-right: 24px;
		padding-top: 5px;
	}

	.form-group.dfd {
		/* border: 1px solid red; */
		/* height: 35px; */
		width: 320px;
		float: left;
	}

	a.btn.btn-default.quer {
		margin-right: 60px;
		margin-left: 2px;
	}

	a.btn.btn-primary.xz {
		margin-left: -50px;
	}

	a.btn.btn-primary.xg {
		margin-left: -60px;
	}

</style>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<!-- 项目名称和堆放点实行二级联动 -->
			<div class="form-group col-sm-4">
				<div class="col-sm-2 control-label prol">项目名称</div>
				<div class="col-sm-10 pror">
					<!--<select class="form-control" v-model="pGuid"  placeholder="项目名称" id="projectIdquer" onchange="getProject()"  >-->
						<!--<option v-for="d in allBase" :value="d.guid">-->
							<!--{{d.pBName}}</option>-->
					<!--</select>-->
					<input type="text" class="form-control" v-model="q.psname"	@click="showprolist" readonly="true" />

				</div>
			</div>

			<div class="form-group col-sm-4">
				<div class="col-sm-2 control-label prol">堆放点</div>
				<div class="col-sm-10 pror">
					<select class="form-control" v-model="q.stack">
						<option value=''>全部</option>
						<option v-for="d in stackPoint" :value="d.guid">
							{{d.sPName}}
						</option>
						<!--<option v-for="f in allCarrival" :value="f.guid">{{f.sPName}}</option>-->
					</select>
				</div>
			</div>

			<!--<div class="form-group dhwz">
				<div class="col-sm-2 control-label prol">到货物资</div>
				<div class="col-sm-10 pror">
					<input type="text" class="form-control" v-model="wuzi" placeholder="到货物资"/>
				</div>
			</div>-->

			<div class="form-group col-sm-4">
				<div class="col-sm-2 control-label prol">到货日期</div>
				<div class="col-sm-10 pror">
					<input type="date" class="form-control" v-model="time" placeholder="到货日期"/>
				</div>
			</div>

		</div>
		<a class="btn btn-default quer" @click="reload">查询</a>

		<!-- 2018-10-24 10:39:36 暂时隐藏新增功能，设计到添加物资（设备、材料） -->
		<!--<a class="btn btn-primary xz" @click="add" onclick="ads()"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
		<a class="btn btn-primary xg" @click="update" ><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
		<a class="btn btn-primary sc" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>

		<a class="btn btn-primary wzhz" onclick="exportCArrival()"><i class="fa fa-pencil-square-o"></i>&nbsp;物资汇总</a>
		<a class="btn btn-primary xqdc" onclick="exportImgss()"><i class="fa fa-trash-o"></i>&nbsp;详情导出(照片)</a>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal" name="form1">


			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">所属项目</div>
				<div class="col-sm-10">

					<select class="form-control" v-model="pGuid"  placeholder="项目名称" disabled="disabled" >
						<option v-for="d in allBase" :value="d.guid">
							{{d.pBName}}</option>
					</select>

					<!--<select class="form-control" v-model="pGuid"  placeholder="项目名称">-->
					<!--<option v-for="d in allBase" :value="d.guid">-->
					<!--{{d.pBName}}</option>-->
					<!--</select>-->

				</div>
			</div>

			<!--<div class="form-group" hidden>
				<div class="col-sm-2 control-label">堆放点</div>
				<div class="col-sm-10">

					<select class="form-control" v-model="cArrivalRecord.sPGuid" id="cArrivalId">
						&lt;!&ndash;<option value=''>-&#45;&#45;请选择-&#45;&#45;</option>&ndash;&gt;
						<option v-for="f in alval" :value="f.guid">{{f.sPName}}</option>
					</select>


				</div>
			</div>-->
			<div class="form-group">
				<!--<div class="col-sm-2 control-label">存放地址</div>-->
				<div class="col-sm-2 control-label">堆放点</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cArrivalRecord.sPName" placeholder="堆放点"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">记录人id</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cArrivalRecord.aRUser" placeholder="记录人id"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">记录人名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cArrivalRecord.aRUsername" placeholder="记录人名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">到货日期</div>
				<div class="col-sm-10">
					<input type="date" class="form-control" v-model="cArrivalRecord.aRTime" placeholder="到货日期"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">状态</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cArrivalRecord.aRDatastate" placeholder="状态"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div id="deptLayermy" style="display: none;padding:10px; ">

		<div class="grid-btn">

			<div class="form-group col-sm-3">
				<input type="text"  class="form-control" v-model="q.ppppBName"  placeholder="项目名称">
			</div>
			<a class="btn btn-default" @click="reloadpro">查询</a>
		</div>


		<table id="jqGrid1" ></table>
		<div id="jqGridPager1" ></div>
	</div>

</div>

<script src="../../js/modules/csg/carrivalrecord.js"></script>
</body>
</html>